<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
  <xsl:apply-templates/> 
 </xsl:template>
 
 <!-- Decklist -->
 <xsl:template match="decks/deck">
 	<div class="deck">
 		<ul>
 	  <xsl:apply-templates select="name"/>
  	  <xsl:apply-templates select="description"/>
  	  	</ul>
  	</div>
 </xsl:template>
 
 <xsl:template match="decks/deck/name">
  			<li class="deckname"><xsl:value-of select = "."/></li>
</xsl:template>

<xsl:template match="decks/deck/description">
        	<li class="deckdescription"><xsl:value-of select = "."/></li>
</xsl:template>

<!-- Stacks -->
<xsl:template match="stacks/stack">
 	<div class="horizontal">
 		<ul>
 	  <xsl:apply-templates select="stackName"/>
  	  <xsl:apply-templates select="stackDescription"/>
  	  	</ul>
  	</div>
 </xsl:template>
 
 <xsl:template match="stacks/stack/stackName">
  			<li><xsl:value-of select = "."/></li>
</xsl:template>

<xsl:template match="stacks/stack/stackDescription">
        	<li><xsl:value-of select = "."/></li>
</xsl:template>

<!-- Stacks -->
<xsl:template match="cards/stack">
 	<div class="horizontal">
 		<ul>
 	  <xsl:apply-templates select="cardName"/>
  	  <xsl:apply-templates select="cardDescription"/>
  	  	</ul>
  	</div>
 </xsl:template>
 
 <xsl:template match="cards/stack/cardName">
  			<li><xsl:value-of select = "."/></li>
</xsl:template>

<xsl:template match="cards/stack/cardDescription">
        	<li><xsl:value-of select = "."/></li>
</xsl:template>

</xsl:stylesheet>